package org.jeecgframework.web.service;
import java.io.Serializable;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.jeecgframework.core.common.service.CommonService;
import org.jeecgframework.web.system.pojo.base.CbsQuickRepairEntity;

public interface CbsQuickRepairServiceI extends CommonService{
	
 	public <T> void delete(T entity);
 	
 	public <T> Serializable save(T entity);
 	
 	public <T> void saveOrUpdate(T entity);
 	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(CbsQuickRepairEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(CbsQuickRepairEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(CbsQuickRepairEntity t);

 	/**
 	 * @author xiul
 	 * 2017-4-11 下午5:03:55
 	 * Description 保存快速报修故障图片
 	 * @param cbsQuickRepair 快速报修ID
 	 * @param faultPic 故障图片filelogIds ,拼接
 	 */
	public void saveFaultPics(CbsQuickRepairEntity cbsQuickRepair, String faultPic);

	/**
	 * @author xiul
	 * 2017-4-13 下午4:33:49
	 * Description 快速保修订单列表
	 */
	public List<CbsQuickRepairEntity> quickRepairOrderList(
			HttpServletRequest request);
}
